﻿function CChart(opts) {
    var self = this;
    this.container = "";
    this.Instant = null;
    this.options = {
        chart: {
            renderTo: "",
            type: 'bar'
        },
        title: {
            text: ''
        },
        subtitle: {
            text: ''
        },        
        tooltip: {
            formatter: function () {
                return '' +
                    this.series.name + ': ' + this.y + ' %';
            }
        }
    };
    $.extend(true, self.options, opts);
    this.Init = function () {
        var options = self.options;
        self.Instant = new Highcharts.Chart(options);
    };
}